using System;
using System.Collections.Generic;
using System.Text;
using OgilvyOne.DALFactory;
using OgilvyOne.IDAL;
using OgilvyOne.Model;
using System.Collections;

namespace OgilvyOne.BLL
{
    public class Message
    {
        // Methods
        public void DeleteMessage(int id)
        {
            OgilvyOne.DALFactory.Message.Create().DeleteMessage(id);
        }

        public MessageInfo GetMessageInfo(int id)
        {
            return OgilvyOne.DALFactory.Message.Create().GetMessageInfo(id);
        }

        public IList GetMessageList(int type)
        {
            return OgilvyOne.DALFactory.Message.Create().GetMessageInfoList(type);
        }

        public int InsertMessageInfo(MessageInfo info)
        {
            return OgilvyOne.DALFactory.Message.Create().InsertMessageInfo(info);
        }
    }
}
